package com.cyq.day15.Demo1;

public class Student extends Human{
    boolean sex;

    public Student() {
    }

    public Student(String name, int age, boolean sex) {
        super(name, age);
        this.sex = sex;
    }

    @Override
    public void showinfo() {
        System.out.println("姓名为:"+this.name+"性别为"+this.sex+"年龄为"+this.age);
    }
}
